using Microsoft.VisualBasic;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
// --- Copyright (c) notice NevoWeb ---
//  Copyright (c) 2008 SARL NevoWeb.  www.nevoweb.com. BSD License.
// Author: D.C.Lee
// ------------------------------------------------------------------------
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// ------------------------------------------------------------------------
// This copyright notice may NOT be removed, obscured or modified without written consent from the author.
// --- End copyright notice --- 



using System.Configuration;

namespace NEvoWeb.Modules.NB_Store
{

    public class NB_StoreUsersInfo
    {

        #region "Private Members"
        private int _UserID;
        private string _Username;
        private string _FirstName;
        private string _LastName;
        private bool _IsSuperUser;
        private int _AffiliateId;
        private string _Email;
        private string _DisplayName;

        private bool _UpdatePassword;
        #endregion

        #region "Constructors"
        public NB_StoreUsersInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }

        public string Username
        {
            get { return _Username; }
            set { _Username = value; }
        }

        public string FirstName
        {
            get { return _FirstName; }
            set { _FirstName = value; }
        }

        public string LastName
        {
            get { return _LastName; }
            set { _LastName = value; }
        }

        public bool IsSuperUser
        {
            get { return _IsSuperUser; }
            set { _IsSuperUser = value; }
        }

        public int AffiliateId
        {
            get { return _AffiliateId; }
            set { _AffiliateId = value; }
        }

        public string Email
        {
            get { return _Email; }
            set { _Email = value; }
        }

        public string DisplayName
        {
            get { return _DisplayName; }
            set { _DisplayName = value; }
        }

        public bool UpdatePassword
        {
            get { return _UpdatePassword; }
            set { _UpdatePassword = value; }
        }


        #endregion

    }

    public class ProductTaxInfo : CartTaxInfo
    {

        #region "Private Members"
        private int _ModelID;
        #endregion
        private string _TaxPercent;

        #region "Constructors"
        public ProductTaxInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ModelID
        {
            get { return _ModelID; }
            set { _ModelID = value; }
        }

        public string TaxPercent
        {
            get { return _TaxPercent; }
            set { _TaxPercent = value; }
        }

        #endregion

    }

    public class CartTaxInfo
    {

        #region "Private Members"
        private string _CartID;
        private string _TaxAmount;
        private string _TotalNET;
        private string _TotalGROSS;
        private string _TaxOption;
        private string _ShipTax;
        private string _WhatIfTaxAmount;
        private string _WhatIfShipTax;
        private string _WhatIfTotalNET;
        #endregion
        private string _WhatIfTotalGROSS;

        #region "Constructors"
        public CartTaxInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public string CartID
        {
            get { return _CartID; }
            set { _CartID = value; }
        }

        public string TaxAmount
        {
            get { return _TaxAmount; }
            set { _TaxAmount = value; }
        }

        public string TotalNET
        {
            get { return _TotalNET; }
            set { _TotalNET = value; }
        }

        public string TotalGROSS
        {
            get { return _TotalGROSS; }
            set { _TotalGROSS = value; }
        }

        public string TaxOption
        {
            get { return _TaxOption; }
            set { _TaxOption = value; }
        }

        public string ShipTax
        {
            get { return _ShipTax; }
            set { _ShipTax = value; }
        }

        #endregion

    }

    public class ProductStockLevels
    {

        #region "Private Members"
        private int _Percent = 0;
        private int _PercentInProgess = 0;
        private int _PercentSold = 0;
        private int _PercentActual = 0;
        private int _Qty = 0;
        private int _MaxQty = 0;
        private int _CartQty = 0;
        #endregion
        private bool _StockOn = false;

        public ProductStockLevels()
        {
            _Percent = 0;
            _PercentInProgess = 0;
            _PercentSold = 0;
            _PercentActual = 0;
            _Qty = 0;
            _MaxQty = 0;
            _CartQty = 0;
            _StockOn = false;
        }

        #region "Cart Public properties"

        public int Percent
        {
            get { return _Percent; }
            set { _Percent = value; }
        }
        public int PercentInProgess
        {
            get { return _PercentInProgess; }
            set { _PercentInProgess = value; }
        }
        public int PercentSold
        {
            get { return _PercentSold; }
            set { _PercentSold = value; }
        }
        public int PercentActual
        {
            get { return _PercentActual; }
            set { _PercentActual = value; }
        }

        public int Qty
        {
            get { return _Qty; }
            set { _Qty = value; }
        }

        public int MaxQty
        {
            get { return _MaxQty; }
            set { _MaxQty = value; }
        }

        public int CartQty
        {
            get { return _CartQty; }
            set { _CartQty = value; }
        }

        public bool StockOn
        {
            get { return _StockOn; }
            set { _StockOn = value; }
        }

        #endregion

    }

    public class CartTotals
    {

        #region "Private Members"
        private decimal _TaxAmt = 0;
        private decimal _TaxAppliedAmt = 0;
        private decimal _ShipAmt = 0;
        private decimal _DiscountAmt = 0;
        private decimal _TotalAmt = 0;
        private decimal _OrderTotal = 0;
        private int _Qty = 0;
        #endregion
        private decimal _Balance = 0;

        public CartTotals()
        {
            _TaxAmt = 0;
            _TaxAppliedAmt = 0;
            _ShipAmt = 0;
            _DiscountAmt = 0;
            _TotalAmt = 0;
            _OrderTotal = 0;
            _Qty = 0;
            _Balance = 0;
        }

        #region "Cart Public properties"

        public decimal TotalAmt
        {
            get { return _TotalAmt; }
            set { _TotalAmt = value; }
        }

        public decimal DiscountAmt
        {
            get { return _DiscountAmt; }
            set { _DiscountAmt = value; }
        }

        public decimal TaxAmt
        {
            get { return _TaxAmt; }
            set { _TaxAmt = value; }
        }

        public decimal TaxAppliedAmt
        {
            get { return _TaxAppliedAmt; }
            set { _TaxAppliedAmt = value; }
        }

        public decimal ShipAmt
        {
            get { return _ShipAmt; }
            set { _ShipAmt = value; }
        }

        public decimal OrderTotal
        {
            get { return _OrderTotal; }
            set { _OrderTotal = value; }
        }

        public int Qty
        {
            get { return _Qty; }
            set { _Qty = value; }
        }

        public decimal Balance
        {
            get { return _Balance; }
            set { _Balance = value; }
        }

        #endregion

    }

    public class OptCodeInfo
    {

        #region "Private Members"
        private decimal _UnitCost;
        private decimal _Discount;
        private string _ItemDesc;
        #endregion
        private string _OptCode;

        #region "Constructors"
        public OptCodeInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public decimal UnitCost
        {
            get { return _UnitCost; }
            set { _UnitCost = value; }
        }

        public decimal Discount
        {
            get { return _Discount; }
            set { _Discount = value; }
        }

        public string ItemDesc
        {
            get { return _ItemDesc; }
            set { _ItemDesc = value; }
        }

        public string OptCode
        {
            get { return _OptCode; }
            set { _OptCode = value; }
        }

        #endregion

    }

    public class NB_Store_AddressInfo
    {

        #region "Private Members"
        private int _AddressID;
        private int _PortalID;
        private int _UserID;
        private string _AddressDescription;
        private string _AddressName;
        private string _AddressName2;
        private string _Address1;
        private string _Address2;
        private string _City;
        private string _RegionCode;
        private string _CountryCode;
        private string _PostalCode;
        private string _Phone1;
        private string _Phone2;
        private bool _PrimaryAddress;
        private string _CreatedByUser;
        private System.DateTime _CreatedDate;
        private int _OrderID;
        private string _CompanyName;
        private string _Extra1;
        private string _Extra2;
        private string _Extra3;

        private string _Extra4;
        #endregion

        #region "Constructors"
        public NB_Store_AddressInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int AddressID
        {
            get { return _AddressID; }
            set { _AddressID = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public int UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }

        public string AddressDescription
        {
            get { return _AddressDescription; }
            set { _AddressDescription = value; }
        }

        public string AddressName
        {
            get { return _AddressName; }
            set { _AddressName = value; }
        }

        public string AddressName2
        {
            get { return _AddressName2; }
            set { _AddressName2 = value; }
        }

        public string Address1
        {
            get { return _Address1; }
            set { _Address1 = value; }
        }

        public string Address2
        {
            get { return _Address2; }
            set { _Address2 = value; }
        }

        public string City
        {
            get { return _City; }
            set { _City = value; }
        }

        public string RegionCode
        {
            get { return _RegionCode; }
            set { _RegionCode = value; }
        }

        public string CountryCode
        {
            get { return _CountryCode; }
            set { _CountryCode = value; }
        }

        public string PostalCode
        {
            get { return _PostalCode; }
            set { _PostalCode = value; }
        }

        public string Phone1
        {
            get { return _Phone1; }
            set { _Phone1 = value; }
        }

        public string Phone2
        {
            get { return _Phone2; }
            set { _Phone2 = value; }
        }

        public bool PrimaryAddress
        {
            get { return _PrimaryAddress; }
            set { _PrimaryAddress = value; }
        }

        public string CreatedByUser
        {
            get { return _CreatedByUser; }
            set { _CreatedByUser = value; }
        }

        public System.DateTime CreatedDate
        {
            get { return _CreatedDate; }
            set { _CreatedDate = value; }
        }

        public int OrderID
        {
            get { return _OrderID; }
            set { _OrderID = value; }
        }

        public string CompanyName
        {
            get { return _CompanyName; }
            set { _CompanyName = value; }
        }

        public string Extra1
        {
            get { return _Extra1; }
            set { _Extra1 = value; }
        }

        public string Extra2
        {
            get { return _Extra2; }
            set { _Extra2 = value; }
        }

        public string Extra3
        {
            get { return _Extra3; }
            set { _Extra3 = value; }
        }

        public string Extra4
        {
            get { return _Extra4; }
            set { _Extra4 = value; }
        }


        #endregion

    }

    public class NB_Store_CartInfo
    {

        #region "Private Members"
        private string _CartID;
        private int _PortalID;
        private int _UserID;
        private System.DateTime _DateCreated;
        private int _OrderID;
        private string _VATNumber;
        private string _PromoCode;
        private string _CountryCode;
        private string _ShipType;
        private int _BankTransID;
        private string _BankHtmlRedirect;
        private int _ShipMethodID;
        private decimal _CartDiscount;
        private string _XMLInfo;
        #endregion
        private string _Referrer;

        #region "Constructors"
        public NB_Store_CartInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public string CartID
        {
            get { return _CartID; }
            set { _CartID = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public int UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }

        public System.DateTime DateCreated
        {
            get { return _DateCreated; }
            set { _DateCreated = value; }
        }

        public int OrderID
        {
            get { return _OrderID; }
            set { _OrderID = value; }
        }

        public string VATNumber
        {
            get { return _VATNumber; }
            set { _VATNumber = value; }
        }

        public string PromoCode
        {
            get { return _PromoCode; }
            set { _PromoCode = value; }
        }

        public string CountryCode
        {
            get { return _CountryCode; }
            set { _CountryCode = value; }
        }

        public string ShipType
        {
            get { return _ShipType; }
            set { _ShipType = value; }
        }

        public int BankTransID
        {
            get { return _BankTransID; }
            set { _BankTransID = value; }
        }

        public string BankHtmlRedirect
        {
            get { return _BankHtmlRedirect; }
            set { _BankHtmlRedirect = value; }
        }

        public int ShipMethodID
        {
            get { return _ShipMethodID; }
            set { _ShipMethodID = value; }
        }

        public decimal CartDiscount
        {
            get
            {
                //make sure we don't pass null
                if (_CartDiscount == Null.NullDecimal)
                {
                    _CartDiscount = 0;
                }
                return _CartDiscount;
            }
            set { _CartDiscount = value; }
        }

        public string XMLInfo
        {
            get { return _XMLInfo; }
            set { _XMLInfo = value; }
        }

        public string Referrer
        {
            get { return _Referrer; }
            set { _Referrer = value; }
        }

        #endregion

    }

    public class NB_Store_CartItemsInfo
    {

        #region "Private Members"
        private int _ItemID;
        private string _CartID;
        private int _Quantity;
        private System.DateTime _DateCreated;
        private decimal _UnitCost;
        private int _ModelID;
        private string _OptCode;
        private string _ItemDesc;
        private decimal _Discount;
        private decimal _Tax;
        private string _ProductURL;

        private string _XMLInfo;
        #endregion

        #region "Constructors"
        public NB_Store_CartItemsInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ItemID
        {
            get { return _ItemID; }
            set { _ItemID = value; }
        }

        public string CartID
        {
            get { return _CartID; }
            set { _CartID = value; }
        }

        public int Quantity
        {
            get { return _Quantity; }
            set { _Quantity = value; }
        }

        public System.DateTime DateCreated
        {
            get { return _DateCreated; }
            set { _DateCreated = value; }
        }

        public decimal UnitCost
        {
            get { return _UnitCost; }
            set { _UnitCost = value; }
        }

        public int ModelID
        {
            get { return _ModelID; }
            set { _ModelID = value; }
        }

        public string OptCode
        {
            get { return _OptCode; }
            set { _OptCode = value; }
        }

        public string ItemDesc
        {
            get { return _ItemDesc; }
            set { _ItemDesc = value; }
        }

        public decimal Discount
        {
            get { return _Discount; }
            set { _Discount = value; }
        }

        public decimal Tax
        {
            get { return _Tax; }
            set { _Tax = value; }
        }

        public string ProductURL
        {
            get { return _ProductURL; }
            set { _ProductURL = value; }
        }

        public string XMLInfo
        {
            get { return _XMLInfo; }
            set { _XMLInfo = value; }
        }

        #endregion

    }

    public class NB_Store_CartListInfo
    {

        #region "Private Members"
        private int _ItemID;
        private int _ModelID;
        private string _OptCode;
        private int _Quantity;
        private decimal _UnitCost;
        private string _ItemDesc;
        private decimal _SubTotal;
        private string _ProductURL;

        private decimal _Discount;
        #endregion

        #region "Constructors"
        public NB_Store_CartListInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ItemID
        {
            get { return _ItemID; }
            set { _ItemID = value; }
        }

        public int Quantity
        {
            get { return _Quantity; }
            set { _Quantity = value; }
        }

        public decimal UnitCost
        {
            get { return _UnitCost; }
            set { _UnitCost = value; }
        }

        public int ModelID
        {
            get { return _ModelID; }
            set { _ModelID = value; }
        }

        public string OptCode
        {
            get { return _OptCode; }
            set { _OptCode = value; }
        }

        public string ItemDesc
        {
            get { return _ItemDesc; }
            set { _ItemDesc = value; }
        }

        public decimal SubTotal
        {
            get { return _SubTotal; }
            set { _SubTotal = value; }
        }

        public string ProductURL
        {
            get { return _ProductURL; }
            set { _ProductURL = value; }
        }

        public decimal Discount
        {
            get { return _Discount; }
            set { _Discount = value; }
        }

        #endregion

    }

    public class NB_Store_CategoriesInfo
    {

        #region "Private Members"
        private int _CategoryID;
        private int _PortalID;
        private bool _Archived;
        private bool _Hide;
        private string _CreatedByUser;
        private System.DateTime _CreatedDate;
        private int _ParentCategoryID;
        private int _ListOrder;
        private string _Lang;
        private string _CategoryName;
        private string _ParentName;
        private string _CategoryDesc;
        private string _Message;
        private int _ProductCount;
        private string _ProductTemplate;
        private string _ListItemTemplate;
        private string _ListAltItemTemplate;
        private string _ImageURL;
        private string _SEOPageTitle;
        private string _SEOName;
        private string _MetaDescription;

        private string _MetaKeywords;
        #endregion

        #region "Constructors"
        public NB_Store_CategoriesInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int CategoryID
        {
            get { return _CategoryID; }
            set { _CategoryID = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public bool Archived
        {
            get { return _Archived; }
            set { _Archived = value; }
        }

        public bool Hide
        {
            get { return _Hide; }
            set { _Hide = value; }
        }

        public string CreatedByUser
        {
            get { return _CreatedByUser; }
            set { _CreatedByUser = value; }
        }

        public System.DateTime CreatedDate
        {
            get { return _CreatedDate; }
            set { _CreatedDate = value; }
        }

        public int ParentCategoryID
        {
            get { return _ParentCategoryID; }
            set { _ParentCategoryID = value; }
        }

        public int ListOrder
        {
            get { return _ListOrder; }
            set { _ListOrder = value; }
        }

        public string Lang
        {
            get { return _Lang; }
            set { _Lang = value; }
        }

        public string CategoryName
        {
            get { return _CategoryName; }
            set { _CategoryName = value; }
        }

        public string ParentName
        {
            get { return _ParentName; }
            set { _ParentName = value; }
        }

        public string CategoryDesc
        {
            get { return _CategoryDesc; }
            set { _CategoryDesc = value; }
        }

        public string Message
        {
            get { return _Message; }
            set { _Message = value; }
        }

        public int ProductCount
        {
            get { return _ProductCount; }
            set { _ProductCount = value; }
        }

        public string ProductTemplate
        {
            get { return _ProductTemplate; }
            set { _ProductTemplate = value; }
        }

        public string ListItemTemplate
        {
            get { return _ListItemTemplate; }
            set { _ListItemTemplate = value; }
        }

        public string ListAltItemTemplate
        {
            get { return _ListAltItemTemplate; }
            set { _ListAltItemTemplate = value; }
        }

        public string ImageURL
        {
            get { return _ImageURL; }
            set { _ImageURL = value; }
        }

        public string SEOPageTitle
        {
            get { return _SEOPageTitle; }
            set { _SEOPageTitle = value; }
        }

        public string SEOName
        {
            get { return _SEOName; }
            set { _SEOName = value; }
        }

        public string MetaDescription
        {
            get { return _MetaDescription; }
            set { _MetaDescription = value; }
        }

        public string MetaKeywords
        {
            get { return _MetaKeywords; }
            set { _MetaKeywords = value; }
        }

        #endregion

    }


    public class NB_Store_ModelInfo
    {

        #region "Private Members"
        private int _ModelID;
        private int _ProductID;
        private int _ListOrder;
        private decimal _UnitCost;
        private string _Barcode;
        private string _ModelRef;
        private string _Lang;
        private string _ModelName;
        private int _QtyRemaining;
        private int _QtyTrans;
        private System.DateTime _QtyTransDate;
        private string _ProductName;
        private int _PortalID;
        private decimal _Weight;
        private decimal _Height;
        private decimal _Length;
        private decimal _Width;
        private bool _Deleted;
        private int _QtyStockSet;
        private decimal _DealerCost;
        private decimal _PurchaseCost;
        private string _XMLData;
        private string _Extra;
        private bool _DealerOnly;
        #endregion
        private int _Allow;

        #region "Constructors"
        public NB_Store_ModelInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ModelID
        {
            get { return _ModelID; }
            set { _ModelID = value; }
        }

        public int ProductID
        {
            get { return _ProductID; }
            set { _ProductID = value; }
        }

        public int ListOrder
        {
            get { return _ListOrder; }
            set { _ListOrder = value; }
        }

        public decimal UnitCost
        {
            get { return _UnitCost; }
            set { _UnitCost = value; }
        }

        public string Barcode
        {
            get { return _Barcode; }
            set { _Barcode = value; }
        }

        public string ModelRef
        {
            get { return _ModelRef; }
            set { _ModelRef = value; }
        }

        public string Lang
        {
            get { return _Lang; }
            set { _Lang = value; }
        }

        public string ModelName
        {
            get { return _ModelName; }
            set { _ModelName = value; }
        }

        public int QtyRemaining
        {
            get { return _QtyRemaining; }
            set { _QtyRemaining = value; }
        }

        public int QtyTrans
        {
            get { return _QtyTrans; }
            set { _QtyTrans = value; }
        }

        public System.DateTime QtyTransDate
        {
            get { return _QtyTransDate; }
            set { _QtyTransDate = value; }
        }

        public string ProductName
        {
            get { return _ProductName; }
            set { _ProductName = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public decimal Weight
        {
            get { return _Weight; }
            set { _Weight = value; }
        }
        public decimal Height
        {
            get { return _Height; }
            set { _Height = value; }
        }
        public decimal Length
        {
            get { return _Length; }
            set { _Length = value; }
        }
        public decimal Width
        {
            get { return _Width; }
            set { _Width = value; }
        }

        public bool Deleted
        {
            get { return _Deleted; }
            set { _Deleted = value; }
        }

        public int QtyStockSet
        {
            get { return _QtyStockSet; }
            set { _QtyStockSet = value; }
        }

        public decimal DealerCost
        {
            get { return _DealerCost; }
            set { _DealerCost = value; }
        }

        public decimal PurchaseCost
        {
            get { return _PurchaseCost; }
            set { _PurchaseCost = value; }
        }

        public string XMLData
        {
            get { return _XMLData; }
            set { _XMLData = value; }
        }

        public string Extra
        {
            get { return _Extra; }
            set { _Extra = value; }
        }

        public bool DealerOnly
        {
            get { return _DealerOnly; }
            set { _DealerOnly = value; }
        }

        public int Allow
        {
            get { return _Allow; }
            set { _Allow = value; }
        }

        #endregion

    }

    public class NB_Store_OptionInfo
    {

        #region "Private Members"
        private int _OptionID;
        private int _ProductID;
        private int _ListOrder;
        private string _Lang;
        private string _OptionDesc;

        private string _Attributes;
        #endregion

        #region "Constructors"
        public NB_Store_OptionInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int OptionID
        {
            get { return _OptionID; }
            set { _OptionID = value; }
        }

        public int ProductID
        {
            get { return _ProductID; }
            set { _ProductID = value; }
        }

        public int ListOrder
        {
            get { return _ListOrder; }
            set { _ListOrder = value; }
        }

        public string Lang
        {
            get { return _Lang; }
            set { _Lang = value; }
        }

        public string OptionDesc
        {
            get { return _OptionDesc; }
            set { _OptionDesc = value; }
        }

        public string Attributes
        {
            get { return _Attributes; }
            set { _Attributes = value; }
        }

        #endregion

    }

    public class NB_Store_OptionValueInfo
    {

        #region "Private Members"
        private int _OptionValueID;
        private int _OptionID;
        private decimal _AddedCost;
        private int _ListOrder;
        private string _Lang;

        private string _OptionValueDesc;
        #endregion

        #region "Constructors"
        public NB_Store_OptionValueInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int OptionValueID
        {
            get { return _OptionValueID; }
            set { _OptionValueID = value; }
        }

        public int OptionID
        {
            get { return _OptionID; }
            set { _OptionID = value; }
        }

        public decimal AddedCost
        {
            get { return _AddedCost; }
            set { _AddedCost = value; }
        }

        public int ListOrder
        {
            get { return _ListOrder; }
            set { _ListOrder = value; }
        }

        public string Lang
        {
            get { return _Lang; }
            set { _Lang = value; }
        }

        public string OptionValueDesc
        {
            get { return _OptionValueDesc; }
            set { _OptionValueDesc = value; }
        }



        #endregion

    }

    public class NB_Store_OrderDetailsInfo
    {

        #region "Private Members"
        private int _OrderDetailID;
        private int _OrderID;
        private int _Quantity;
        private decimal _UnitCost;
        private int _ModelID;
        private string _OptCode;
        private string _ItemDesc;
        private decimal _Discount;
        private decimal _Tax;
        private string _ProductURL;
        private decimal _PurchaseCost;

        private string _CartXMLInfo;
        #endregion

        #region "Constructors"
        public NB_Store_OrderDetailsInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int OrderDetailID
        {
            get { return _OrderDetailID; }
            set { _OrderDetailID = value; }
        }

        public int OrderID
        {
            get { return _OrderID; }
            set { _OrderID = value; }
        }

        public int Quantity
        {
            get { return _Quantity; }
            set { _Quantity = value; }
        }

        public decimal UnitCost
        {
            get { return _UnitCost; }
            set { _UnitCost = value; }
        }

        public int ModelID
        {
            get { return _ModelID; }
            set { _ModelID = value; }
        }

        public string OptCode
        {
            get { return _OptCode; }
            set { _OptCode = value; }
        }

        public string ItemDesc
        {
            get { return _ItemDesc; }
            set { _ItemDesc = value; }
        }

        public decimal Discount
        {
            get { return _Discount; }
            set { _Discount = value; }
        }

        public decimal Tax
        {
            get { return _Tax; }
            set { _Tax = value; }
        }

        public string ProductURL
        {
            get { return _ProductURL; }
            set { _ProductURL = value; }
        }

        public decimal Total
        {
            get { return (_Quantity * _UnitCost); }
        }

        public decimal TotalDiscount
        {
            get { return (_Quantity * _Discount); }
        }

        public decimal PurchaseCost
        {
            get { return _PurchaseCost; }
            set { _PurchaseCost = value; }
        }

        public string CartXMLInfo
        {
            get { return _CartXMLInfo; }
            set { _CartXMLInfo = value; }
        }

        #endregion

    }

    public class NB_Store_OrdersInfo
    {

        #region "Private Members"
        private int _OrderID;
        private int _UserID;
        private int _PortalID;
        private string _OrderNumber;
        private System.DateTime _OrderDate;
        private System.DateTime _ShipDate;
        private int _ShippingAddressID;
        private int _BillingAddressID;
        private decimal _AppliedTax;
        private decimal _ShippingCost;
        private bool _OrderIsPlaced;
        private int _OrderStatusID;
        private string _PayType;
        private decimal _CalculatedTax;
        private string _NoteMsg;
        private string _VATNumber;
        private decimal _Discount;
        private string _PromoCode;
        private decimal _Total;
        private string _Email;
        private string _BankAuthCode;
        private int _ShipMethodID;
        private string _TrackingCode;
        private string _Stg2FormXML;
        private string _Stg3FormXML;
        private decimal _AlreadyPaid;
        private string _OrderGUID;
        private System.DateTime _ElapsedDate;
        private string _GatewayProvider;
        private string _CartXMLInfo;

        private string _Referrer;
        #endregion

        #region "Constructors"
        public NB_Store_OrdersInfo()
        {
            //assign here so we know we've got a fresh order.
            _OrderNumber = "";
            _OrderIsPlaced = false;
        }
        #endregion

        #region "Public Properties"
        public int OrderID
        {
            get { return _OrderID; }
            set { _OrderID = value; }
        }

        public int UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public string OrderNumber
        {
            get { return _OrderNumber; }
            set { _OrderNumber = value; }
        }

        public string ShortOrderNumber
        {
            get
            {
                if (_OrderNumber.Length > 14)
                {
                    return _OrderNumber.Substring(Strings.InStr(_OrderNumber, "-") + 6, 5);
                }
                else
                {
                    return "";
                }
            }
        }

        public System.DateTime OrderDate
        {
            get { return _OrderDate; }
            set { _OrderDate = value; }
        }

        public System.DateTime ShipDate
        {
            get { return _ShipDate; }
            set { _ShipDate = value; }
        }

        public int ShippingAddressID
        {
            get { return _ShippingAddressID; }
            set { _ShippingAddressID = value; }
        }

        public int BillingAddressID
        {
            get { return _BillingAddressID; }
            set { _BillingAddressID = value; }
        }

        public decimal AppliedTax
        {
            get { return _AppliedTax; }
            set { _AppliedTax = value; }
        }

        public decimal ShippingCost
        {
            get { return _ShippingCost; }
            set { _ShippingCost = value; }
        }

        public bool OrderIsPlaced
        {
            get { return _OrderIsPlaced; }
            set { _OrderIsPlaced = value; }
        }

        public int OrderStatusID
        {
            get { return _OrderStatusID; }
            set { _OrderStatusID = value; }
        }

        public string PayType
        {
            get { return _PayType; }
            set { _PayType = value; }
        }

        public decimal CalculatedTax
        {
            get { return _CalculatedTax; }
            set { _CalculatedTax = value; }
        }

        public string NoteMsg
        {
            get { return _NoteMsg; }
            set { _NoteMsg = value; }
        }

        public string VATNumber
        {
            get { return _VATNumber; }
            set { _VATNumber = value; }
        }

        public decimal Discount
        {
            get { return _Discount; }
            set { _Discount = value; }
        }

        public string PromoCode
        {
            get { return _PromoCode; }
            set { _PromoCode = value; }
        }

        public decimal Total
        {
            get { return _Total; }
            set { _Total = value; }
        }

        public string Email
        {
            get { return _Email; }
            set { _Email = value; }
        }

        public decimal CartTotal
        {
            get { return _Total - (_AppliedTax + _ShippingCost); }
        }

        public string BankAuthCode
        {
            get { return _BankAuthCode; }
            set { _BankAuthCode = value; }
        }

        public int ShipMethodID
        {
            get { return _ShipMethodID; }
            set { _ShipMethodID = value; }
        }

        public string TrackingCode
        {
            get { return _TrackingCode; }
            set { _TrackingCode = value; }
        }

        public string Stg2FormXML
        {
            get { return _Stg2FormXML; }
            set { _Stg2FormXML = value; }
        }

        public string Stg3FormXML
        {
            get { return _Stg3FormXML; }
            set { _Stg3FormXML = value; }
        }

        public decimal AlreadyPaid
        {
            get { return _AlreadyPaid; }
            set { _AlreadyPaid = value; }
        }

        public decimal BalanceOutstanding
        {
            get
            {
                try
                {
                    return _Total - _AlreadyPaid;
                }
                catch (Exception ex)
                {
                    return _Total;
                }
            }
        }

        public string OrderGUID
        {
            get { return _OrderGUID; }
            set { _OrderGUID = value; }
        }

        public System.DateTime ElapsedDate
        {
            get { return _ElapsedDate; }
            set { _ElapsedDate = value; }
        }

        public string GatewayProvider
        {
            get { return _GatewayProvider; }
            set { _GatewayProvider = value; }
        }

        public string CartXMLInfo
        {
            get { return _CartXMLInfo; }
            set { _CartXMLInfo = value; }
        }

        public decimal Tax
        {
            get
            {
                if (_AppliedTax == 0)
                {
                    return _CalculatedTax;
                }
                else
                {
                    return _AppliedTax;
                }
            }
        }

        public string Referrer
        {
            get { return _Referrer; }
            set { _Referrer = value; }
        }

        #endregion

    }

    public class NB_Store_OrderStatusInfo
    {

        #region "Private Members"
        private int _OrderStatusID;
        private string _Lang;
        private string _OrderStatusText;

        private int _ListOrder;
        #endregion

        #region "Constructors"
        public NB_Store_OrderStatusInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int OrderStatusID
        {
            get { return _OrderStatusID; }
            set { _OrderStatusID = value; }
        }

        public string Lang
        {
            get { return _Lang; }
            set { _Lang = value; }
        }

        public string OrderStatusText
        {
            get { return _OrderStatusText; }
            set { _OrderStatusText = value; }
        }

        public int ListOrder
        {
            get { return _ListOrder; }
            set { _ListOrder = value; }
        }


        #endregion
    }

    public class NB_Store_ProductImageInfo
    {

        #region "Private Members"
        private int _ImageID;
        private int _ProductID;
        private string _ImagePath;
        private int _ListOrder;
        private bool _Hidden;
        private string _Lang;
        private string _ImageDesc;

        private string _ImageURL;
        #endregion

        #region "Constructors"
        public NB_Store_ProductImageInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ImageID
        {
            get { return _ImageID; }
            set { _ImageID = value; }
        }

        public int ProductID
        {
            get { return _ProductID; }
            set { _ProductID = value; }
        }

        public string ImagePath
        {
            get { return _ImagePath; }
            set { _ImagePath = value; }
        }

        public int ListOrder
        {
            get { return _ListOrder; }
            set { _ListOrder = value; }
        }

        public bool Hidden
        {
            get { return _Hidden; }
            set { _Hidden = value; }
        }

        public string Lang
        {
            get { return _Lang; }
            set { _Lang = value; }
        }

        public string ImageDesc
        {
            get { return _ImageDesc; }
            set { _ImageDesc = value; }
        }

        public string ImageURL
        {
            get { return _ImageURL; }
            set { _ImageURL = value; }
        }

        #endregion

    }

    public class NB_Store_ProductsInfo
    {

        #region "Private Members"
        private int _ProductID;
        private int _PortalID;
        private int _TaxCategoryID;
        private bool _Featured;
        private bool _Archived;
        private string _CreatedByUser;
        private System.DateTime _CreatedDate;
        private bool _IsDeleted;
        private string _ProductRef;
        private string _Lang;
        private string _Summary;
        private string _Description;
        private string _Manufacturer;
        private string _ProductName;
        private string _XMLData;
        private System.DateTime _ModifiedDate;
        private string _SEOName;
        private string _TagWords;
        #endregion
        private bool _IsHidden;

        #region "Constructors"
        public NB_Store_ProductsInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ProductID
        {
            get { return _ProductID; }
            set { _ProductID = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public int TaxCategoryID
        {
            get { return _TaxCategoryID; }
            set { _TaxCategoryID = value; }
        }

        public bool Featured
        {
            get { return _Featured; }
            set { _Featured = value; }
        }

        public bool Archived
        {
            get { return _Archived; }
            set { _Archived = value; }
        }

        public string CreatedByUser
        {
            get { return _CreatedByUser; }
            set { _CreatedByUser = value; }
        }

        public System.DateTime CreatedDate
        {
            get { return _CreatedDate; }
            set { _CreatedDate = value; }
        }

        public bool IsDeleted
        {
            get { return _IsDeleted; }
            set { _IsDeleted = value; }
        }

        public string ProductRef
        {
            get { return _ProductRef; }
            set { _ProductRef = value; }
        }

        public string Lang
        {
            get { return _Lang; }
            set { _Lang = value; }
        }

        public string Summary
        {
            get { return _Summary; }
            set { _Summary = value; }
        }

        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

        public string Manufacturer
        {
            get { return _Manufacturer; }
            set { _Manufacturer = value; }
        }

        public string ProductName
        {
            get { return _ProductName; }
            set { _ProductName = value; }
        }

        public string XMLData
        {
            get { return _XMLData; }
            set { _XMLData = value; }
        }

        public System.DateTime ModifiedDate
        {
            get { return _ModifiedDate; }
            set { _ModifiedDate = value; }
        }

        public string SEOName
        {
            get { return _SEOName; }
            set { _SEOName = value; }
        }

        public string TagWords
        {
            get { return _TagWords; }
            set { _TagWords = value; }
        }

        public bool IsHidden
        {
            get { return _IsHidden; }
            set { _IsHidden = value; }
        }

        #endregion

    }

    public class ProductListInfo
    {

        #region "Private Members"
        private int _ProductID;
        private int _PortalID;
        private int _TaxCategoryID;
        private bool _Featured;
        private bool _Archived;
        private string _CreatedByUser;
        private System.DateTime _CreatedDate;
        private bool _IsDeleted;
        private string _ProductRef;
        private string _Lang;
        private string _Summary;
        private string _Description;
        private string _Manufacturer;
        private string _ProductName;
        private decimal _FromPrice;
        private decimal _SalePrice;
        private int _QtyRemaining;
        private int _QtyStockSet;
        private string _ImageURL;
        private string _ImageDESC;
        private int _ImageID;
        private string _CategoryName;
        private string _XMLData;
        private System.DateTime _ModifiedDate;
        private string _SEOName;
        private string _TagWords;
        private bool _IsHidden;

        private string _SEOPageTitle;
        #endregion

        #region "Constructors"
        public ProductListInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ProductID
        {
            get { return _ProductID; }
            set { _ProductID = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public int TaxCategoryID
        {
            get { return _TaxCategoryID; }
            set { _TaxCategoryID = value; }
        }

        public bool Featured
        {
            get { return _Featured; }
            set { _Featured = value; }
        }

        public bool Archived
        {
            get { return _Archived; }
            set { _Archived = value; }
        }

        public string CreatedByUser
        {
            get { return _CreatedByUser; }
            set { _CreatedByUser = value; }
        }

        public System.DateTime CreatedDate
        {
            get { return _CreatedDate; }
            set { _CreatedDate = value; }
        }

        public bool IsDeleted
        {
            get { return _IsDeleted; }
            set { _IsDeleted = value; }
        }

        public string ProductRef
        {
            get { return _ProductRef; }
            set { _ProductRef = value; }
        }

        public string Lang
        {
            get { return _Lang; }
            set { _Lang = value; }
        }

        public string Summary
        {
            get { return _Summary; }
            set { _Summary = value; }
        }

        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

        public string Manufacturer
        {
            get { return _Manufacturer; }
            set { _Manufacturer = value; }
        }

        public string ProductName
        {
            get { return _ProductName; }
            set { _ProductName = value; }
        }

        public int QtyRemaining
        {
            get { return _QtyRemaining; }
            set { _QtyRemaining = value; }
        }

        public int QtyStockSet
        {
            get { return _QtyStockSet; }
            set { _QtyStockSet = value; }
        }

        public decimal FromPrice
        {
            get { return _FromPrice; }
            set { _FromPrice = value; }
        }

        public decimal SalePrice
        {
            get { return _SalePrice; }
            set { _SalePrice = value; }
        }

        public string ImageURL
        {
            get { return _ImageURL; }
            set { _ImageURL = value; }
        }

        public string ImageDesc
        {
            get { return _ImageDESC; }
            set { _ImageDESC = value; }
        }

        public int ImageID
        {
            get { return _ImageID; }
            set { _ImageID = value; }
        }

        public string CategoryName
        {
            get { return _CategoryName; }
            set { _CategoryName = value; }
        }

        public string XMLData
        {
            get { return _XMLData; }
            set { _XMLData = value; }
        }

        public System.DateTime ModifiedDate
        {
            get { return _ModifiedDate; }
            set { _ModifiedDate = value; }
        }

        public string SEOName
        {
            get { return _SEOName; }
            set { _SEOName = value; }
        }

        public string TagWords
        {
            get { return _TagWords; }
            set { _TagWords = value; }
        }

        public bool IsHidden
        {
            get { return _IsHidden; }
            set { _IsHidden = value; }
        }

        public string SEOPageTitle
        {
            get { return _SEOPageTitle; }
            set { _SEOPageTitle = value; }
        }

        #endregion

    }

    public class NB_Store_ReviewsInfo
    {

        #region "Private Members"
        private int _ReviewID;
        private int _PortalID;
        private int _ProductID;
        private int _UserID;
        private string _UserName;
        private int _Rating;
        private string _Comments;
        private bool _Authorized;

        private System.DateTime _CreatedDate;
        #endregion

        #region "Constructors"
        public NB_Store_ReviewsInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ReviewID
        {
            get { return _ReviewID; }
            set { _ReviewID = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public int ProductID
        {
            get { return _ProductID; }
            set { _ProductID = value; }
        }

        public int UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }

        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }

        public int Rating
        {
            get { return _Rating; }
            set { _Rating = value; }
        }

        public string Comments
        {
            get { return _Comments; }
            set { _Comments = value; }
        }

        public bool Authorized
        {
            get { return _Authorized; }
            set { _Authorized = value; }
        }

        public System.DateTime CreatedDate
        {
            get { return _CreatedDate; }
            set { _CreatedDate = value; }
        }


        #endregion

    }

    public class NB_Store_SaleRatesInfo
    {

        #region "Private Members"
        private int _ItemID;
        private string _CacheKey;
        private int _PortalID;
        private string _RoleName;
        private int _CategoryID;
        private int _ModelID;

        private string _SalePrice;
        #endregion

        #region "Constructors"
        public NB_Store_SaleRatesInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ItemID
        {
            get { return _ItemID; }
            set { _ItemID = value; }
        }

        public string CacheKey
        {
            get { return _CacheKey; }
            set { _CacheKey = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public string RoleName
        {
            get { return _RoleName; }
            set { _RoleName = value; }
        }

        public int CategoryID
        {
            get { return _CategoryID; }
            set { _CategoryID = value; }
        }

        public int ModelID
        {
            get { return _ModelID; }
            set { _ModelID = value; }
        }

        public decimal SalePrice
        {
            get { return _SalePrice; }
            set { _SalePrice = value; }
        }


        #endregion

    }

    public class NB_Store_SettingsInfo
    {

        #region "Private Members"
        private int _PortalID;
        private string _SettingName;
        private string _Lang;
        private string _SettingValue;
        private bool _HostOnly;
        private string _GroupRef;
        #endregion
        private string _CtrlType;

        #region "Constructors"
        public NB_Store_SettingsInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public string SettingName
        {
            get { return _SettingName; }
            set { _SettingName = value; }
        }

        public string Lang
        {
            get { return _Lang; }
            set { _Lang = value; }
        }

        public string SettingValue
        {
            get { return _SettingValue; }
            set { _SettingValue = value; }
        }

        public bool HostOnly
        {
            get { return _HostOnly; }
            set { _HostOnly = value; }
        }

        public string GroupRef
        {
            get { return _GroupRef; }
            set { _GroupRef = value; }
        }
        public string CtrlType
        {
            get { return _CtrlType; }
            set { _CtrlType = value; }
        }

        #endregion

    }

    public class NB_Store_SettingsTextInfo
    {

        #region "Private Members"
        private int _PortalID;
        private string _SettingName;
        private string _Lang;
        private string _SettingText;
        private bool _HostOnly;
        private string _GroupRef;

        private string _CtrlType;
        #endregion

        #region "Constructors"
        public NB_Store_SettingsTextInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public string SettingName
        {
            get { return _SettingName; }
            set { _SettingName = value; }
        }

        public string Lang
        {
            get { return _Lang; }
            set { _Lang = value; }
        }

        public string SettingText
        {
            get { return _SettingText; }
            set { _SettingText = value; }
        }

        public bool HostOnly
        {
            get { return _HostOnly; }
            set { _HostOnly = value; }
        }

        public string GroupRef
        {
            get { return _GroupRef; }
            set { _GroupRef = value; }
        }
        public string CtrlType
        {
            get { return _CtrlType; }
            set { _CtrlType = value; }
        }

        public string SettingValue
        {
            get { return _SettingText; }
            set { _SettingText = value; }
        }


        #endregion

    }

    public class NB_Store_ShippingRatesInfo
    {

        #region "Private Members"
        private int _PortalId;
        private int _ItemId;
        private decimal _Range1;
        private decimal _Range2;
        private int _ObjectId;
        private decimal _ShipCost;
        private string _ShipType;
        private bool _Disable;
        private string _Description;
        private decimal _ProductWeight;
        private decimal _ProductHeight;
        private decimal _ProductLength;
        private decimal _ProductWidth;

        private int _ShipMethodID;
        #endregion

        #region "Constructors"
        public NB_Store_ShippingRatesInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int PortalID
        {
            get { return _PortalId; }
            set { _PortalId = value; }
        }

        public int ItemId
        {
            get { return _ItemId; }
            set { _ItemId = value; }
        }

        public decimal Range1
        {
            get { return _Range1; }
            set { _Range1 = value; }
        }

        public decimal Range2
        {
            get { return _Range2; }
            set { _Range2 = value; }
        }

        public int ObjectId
        {
            get { return _ObjectId; }
            set { _ObjectId = value; }
        }

        public decimal ShipCost
        {
            get { return _ShipCost; }
            set { _ShipCost = value; }
        }

        public string ShipType
        {
            get { return _ShipType; }
            set { _ShipType = value; }
        }

        public bool Disable
        {
            get { return _Disable; }
            set { _Disable = value; }
        }

        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

        public decimal ProductWeight
        {
            get { return _ProductWeight; }
            set { _ProductWeight = value; }
        }

        public decimal ProductHeight
        {
            get { return _ProductHeight; }
            set { _ProductHeight = value; }
        }

        public decimal ProductLength
        {
            get { return _ProductLength; }
            set { _ProductLength = value; }
        }

        public decimal ProductWidth
        {
            get { return _ProductWidth; }
            set { _ProductWidth = value; }
        }

        public int ShipMethodID
        {
            get { return _ShipMethodID; }
            set { _ShipMethodID = value; }
        }

        #endregion

    }

    public class NB_Store_StockInfo
    {

        #region "Private Members"
        private int _StockID;
        private int _ModelID;
        private int _QtyRemaining;
        private int _QtyTrans;
        private System.DateTime _QtyTransDate;

        private System.DateTime _ModifiedDate;
        #endregion

        #region "Constructors"
        public NB_Store_StockInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int StockID
        {
            get { return _StockID; }
            set { _StockID = value; }
        }

        public int ModelID
        {
            get { return _ModelID; }
            set { _ModelID = value; }
        }

        public int QtyRemaining
        {
            get { return _QtyRemaining; }
            set { _QtyRemaining = value; }
        }

        public int QtyTrans
        {
            get { return _QtyTrans; }
            set { _QtyTrans = value; }
        }

        public System.DateTime QtyTransDate
        {
            get { return _QtyTransDate; }
            set { _QtyTransDate = value; }
        }

        public System.DateTime ModifiedDate
        {
            get { return _ModifiedDate; }
            set { _ModifiedDate = value; }
        }


        #endregion

    }

    public class NB_Store_TaxRatesInfo
    {

        #region "Private Members"
        private int _PortalID;
        private int _ItemID;
        private int _ObjectID;
        private string _TaxPercent;
        private string _TaxDesc;
        private string _TaxType;

        private bool _Disable;
        #endregion

        #region "Constructors"
        public NB_Store_TaxRatesInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public int ItemID
        {
            get { return _ItemID; }
            set { _ItemID = value; }
        }

        public int ObjectID
        {
            get { return _ObjectID; }
            set { _ObjectID = value; }
        }

        public string TaxPercent
        {
            get { return _TaxPercent; }
            set { _TaxPercent = value; }
        }

        public string TaxDesc
        {
            get { return _TaxDesc; }
            set { _TaxDesc = value; }
        }

        public string TaxType
        {
            get { return _TaxType; }
            set { _TaxType = value; }
        }

        public bool Disable
        {
            get { return _Disable; }
            set { _Disable = value; }
        }


        #endregion

    }

    public class NB_Store_ProductDocInfo
    {

        #region "Private Members"
        private int _DocID;
        private int _ProductID;
        private string _DocPath;
        private int _ListOrder;
        private bool _Hidden;
        private string _FileName;
        private string _FileExt;
        private string _Lang;

        private string _DocDesc;
        #endregion

        #region "Constructors"
        public NB_Store_ProductDocInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int DocID
        {
            get { return _DocID; }
            set { _DocID = value; }
        }

        public int ProductID
        {
            get { return _ProductID; }
            set { _ProductID = value; }
        }

        public string DocPath
        {
            get { return _DocPath; }
            set { _DocPath = value; }
        }

        public int ListOrder
        {
            get { return _ListOrder; }
            set { _ListOrder = value; }
        }

        public bool Hidden
        {
            get { return _Hidden; }
            set { _Hidden = value; }
        }

        public string FileName
        {
            get { return _FileName; }
            set { _FileName = value; }
        }

        public string FileExt
        {
            get { return _FileExt; }
            set { _FileExt = value; }
        }

        public string Lang
        {
            get { return _Lang; }
            set { _Lang = value; }
        }

        public string DocDesc
        {
            get { return _DocDesc; }
            set { _DocDesc = value; }
        }


        #endregion

    }

    public class NB_Store_ProductSelectDocInfo
    {

        #region "Private Members"
        private string _DocPath;
        private string _FileName;
        private string _FileExt;
        private string _Lang;

        private string _DocDesc;
        #endregion

        #region "Constructors"
        public NB_Store_ProductSelectDocInfo()
        {
        }
        #endregion

        #region "Public Properties"

        public string DocPath
        {
            get { return _DocPath; }
            set { _DocPath = value; }
        }

        public string FileName
        {
            get { return _FileName; }
            set { _FileName = value; }
        }

        public string FileExt
        {
            get { return _FileExt; }
            set { _FileExt = value; }
        }

        public string Lang
        {
            get { return _Lang; }
            set { _Lang = value; }
        }

        public string DocDesc
        {
            get { return _DocDesc; }
            set { _DocDesc = value; }
        }


        #endregion

    }

    public class NB_Store_ProductCategoryInfo
    {

        #region "Private Members"
        private int _ProductID;

        private int _CategoryID;
        #endregion

        #region "Constructors"
        public NB_Store_ProductCategoryInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ProductID
        {
            get { return _ProductID; }
            set { _ProductID = value; }
        }

        public int CategoryID
        {
            get { return _CategoryID; }
            set { _CategoryID = value; }
        }


        #endregion

    }

    public class NB_Store_ShippingMethodInfo
    {

        #region "Private Members"
        private int _ShipMethodID;
        private int _PortalID;
        private string _MethodName;
        private string _MethodDesc;
        private int _SortOrder;
        private string _TemplateName;
        private bool _Disabled;

        private string _URLtracker;
        #endregion

        #region "Constructors"
        public NB_Store_ShippingMethodInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ShipMethodID
        {
            get { return _ShipMethodID; }
            set { _ShipMethodID = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public string MethodName
        {
            get { return _MethodName; }
            set { _MethodName = value; }
        }

        public string MethodDesc
        {
            get { return _MethodDesc; }
            set { _MethodDesc = value; }
        }

        public int SortOrder
        {
            get { return _SortOrder; }
            set { _SortOrder = value; }
        }

        public string TemplateName
        {
            get { return _TemplateName; }
            set { _TemplateName = value; }
        }

        public bool Disabled
        {
            get { return _Disabled; }
            set { _Disabled = value; }
        }

        public string URLtracker
        {
            get { return _URLtracker; }
            set { _URLtracker = value; }
        }


        #endregion

    }

    public class NB_Store_PromoInfo
    {

        #region "Private Members"
        private int _PromoID;
        private int _PortalID;
        private int _ObjectID;
        private string _PromoName;
        private string _PromoType;
        private string _Range1;
        private string _Range2;
        private System.DateTime _RangeStartDate;
        private System.DateTime _RangeEndDate;
        private string _PromoAmount;
        private int _PromoPercent;
        private bool _Disabled;
        private string _PromoCode;
        private string _PromoGroup;
        private string _PromoUser;
        private int _QtyRange1;
        private int _QtyRange2;
        private string _PromoEmail;
        private string _XMLData;
        private int _MaxUsage = 1;
        //added by Philipp Becker 12/07/2010

        private int _MaxUsagePerUser = 1;
        #endregion

        #region "Constructors"
        public NB_Store_PromoInfo()
        {
        }
        #endregion

        #region "Public Properties"


        //added by Philipp Becker 12/07/2010
        public int MaxUsagePerUser
        {
            get { return _MaxUsagePerUser; }
            set { _MaxUsagePerUser = value; }
        }

        public int MaxUsage
        {
            get { return _MaxUsage; }
            set { _MaxUsage = value; }
        }

        public int PromoID
        {
            get { return _PromoID; }
            set { _PromoID = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public int ObjectID
        {
            get { return _ObjectID; }
            set { _ObjectID = value; }
        }

        public string PromoName
        {
            get { return _PromoName; }
            set { _PromoName = value; }
        }

        public string PromoType
        {
            get { return _PromoType; }
            set { _PromoType = value; }
        }

        public string Range1
        {
            get { return _Range1; }
            set { _Range1 = value; }
        }

        public string Range2
        {
            get { return _Range2; }
            set { _Range2 = value; }
        }

        public System.DateTime RangeStartDate
        {
            get { return _RangeStartDate; }
            set { _RangeStartDate = value; }
        }

        public System.DateTime RangeEndDate
        {
            get { return _RangeEndDate; }
            set { _RangeEndDate = value; }
        }

        public string PromoAmount
        {
            get { return _PromoAmount; }
            set { _PromoAmount = value; }
        }

        public int PromoPercent
        {
            get { return _PromoPercent; }
            set { _PromoPercent = value; }
        }

        public bool Disabled
        {
            get { return _Disabled; }
            set { _Disabled = value; }
        }

        public string PromoCode
        {
            get { return _PromoCode; }
            set { _PromoCode = value; }
        }

        public string PromoGroup
        {
            get { return _PromoGroup; }
            set { _PromoGroup = value; }
        }

        public string PromoUser
        {
            get { return _PromoUser; }
            set { _PromoUser = value; }
        }

        public int QtyRange1
        {
            get { return _QtyRange1; }
            set { _QtyRange1 = value; }
        }

        public int QtyRange2
        {
            get { return _QtyRange2; }
            set { _QtyRange2 = value; }
        }

        public string PromoEmail
        {
            get { return _PromoEmail; }
            set { _PromoEmail = value; }
        }

        public string XMLData
        {
            get { return _XMLData; }
            set { _XMLData = value; }
        }


        #endregion

    }

    public class NB_Store_SQLReportInfo
    {

        #region "Private Members"
        private int _ReportID;
        private int _PortalID;
        private string _ReportName;
        private string _SQL;
        private bool _SchedulerFlag;
        private string _SchStartHour;
        private string _SchStartMins;
        private string _SchReRunMins;
        private System.DateTime _LastRunTime;
        private bool _AllowExport;
        private bool _AllowDisplay;
        private bool _DisplayInLine;
        private bool _EmailResults;
        private string _EmailFrom;

        private string _EmailTo;

        private bool _ShowSQL;
        private string _ConnectionString;
        private string _ReportRef;

        private bool _AllowPaging;
        private string _ReportTitle;
        private string _FieldDelimeter;

        private string _FieldQualifier;
        #endregion

        #region "Constructors"
        public NB_Store_SQLReportInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ReportID
        {
            get { return _ReportID; }
            set { _ReportID = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public string ReportName
        {
            get { return _ReportName; }
            set { _ReportName = value; }
        }

        public string ReportTitle
        {
            get { return _ReportTitle; }
            set { _ReportTitle = value; }
        }

        public string SQL
        {
            get { return _SQL; }
            set { _SQL = value; }
        }

        public bool SchedulerFlag
        {
            get { return _SchedulerFlag; }
            set { _SchedulerFlag = value; }
        }

        public string SchStartHour
        {
            get { return _SchStartHour; }
            set { _SchStartHour = value; }
        }

        public string SchStartMins
        {
            get { return _SchStartMins; }
            set { _SchStartMins = value; }
        }

        public string SchReRunMins
        {
            get { return _SchReRunMins; }
            set { _SchReRunMins = value; }
        }

        public System.DateTime LastRunTime
        {
            get { return _LastRunTime; }
            set { _LastRunTime = value; }
        }

        public bool AllowExport
        {
            get { return _AllowExport; }
            set { _AllowExport = value; }
        }

        public bool AllowDisplay
        {
            get { return _AllowDisplay; }
            set { _AllowDisplay = value; }
        }

        public bool DisplayInLine
        {
            get { return _DisplayInLine; }
            set { _DisplayInLine = value; }
        }

        public bool EmailResults
        {
            get { return _EmailResults; }
            set { _EmailResults = value; }
        }

        public string EmailFrom
        {
            get { return _EmailFrom; }
            set { _EmailFrom = value; }
        }

        public string EmailTo
        {
            get { return _EmailTo; }
            set { _EmailTo = value; }
        }




        public bool ShowSQL
        {
            get { return _ShowSQL; }
            set { _ShowSQL = value; }
        }

        public string ConnectionString
        {
            get { return _ConnectionString; }
            set { _ConnectionString = value; }
        }

        public string ReportRef
        {
            get { return _ReportRef; }
            set { _ReportRef = value; }
        }

        public bool AllowPaging
        {
            get { return _AllowPaging; }
            set { _AllowPaging = value; }
        }



        public string FieldDelimeter
        {
            get { return _FieldDelimeter; }
            set { _FieldDelimeter = value; }
        }

        public string FieldQualifier
        {
            get { return _FieldQualifier; }
            set { _FieldQualifier = value; }
        }

        #endregion

    }

    public class NB_Store_SQLReportParamInfo
    {

        #region "Private Members"
        private int _ReportParamID;
        private int _ReportID;
        private string _ParamName;
        private string _ParamType;
        private string _ParamValue;
        #endregion
        private int _ParamSource;

        #region "Constructors"
        public NB_Store_SQLReportParamInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ReportParamID
        {
            get { return _ReportParamID; }
            set { _ReportParamID = value; }
        }

        public int ReportID
        {
            get { return _ReportID; }
            set { _ReportID = value; }
        }

        public string ParamName
        {
            get { return _ParamName; }
            set { _ParamName = value; }
        }

        public string ParamType
        {
            get { return _ParamType; }
            set { _ParamType = value; }
        }

        public string ParamValue
        {
            get { return _ParamValue; }
            set { _ParamValue = value; }
        }

        public int ParamSource
        {
            get { return _ParamSource; }
            set { _ParamSource = value; }
        }


        #endregion

    }

    public class NB_Store_SQLReportXSLInfo
    {

        #region "Private Members"
        private int _ReportXSLID;
        private int _ReportID;
        private string _XMLInput;
        private string _XSLFile;
        private string _OutputFile;
        private bool _DisplayResults;

        private int _SortOrder;
        #endregion

        #region "Constructors"
        public NB_Store_SQLReportXSLInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int ReportXSLID
        {
            get { return _ReportXSLID; }
            set { _ReportXSLID = value; }
        }

        public int ReportID
        {
            get { return _ReportID; }
            set { _ReportID = value; }
        }

        public string XMLInput
        {
            get { return _XMLInput; }
            set { _XMLInput = value; }
        }

        public string XSLFile
        {
            get { return _XSLFile; }
            set { _XSLFile = value; }
        }

        public string OutputFile
        {
            get { return _OutputFile; }
            set { _OutputFile = value; }
        }

        public bool DisplayResults
        {
            get { return _DisplayResults; }
            set { _DisplayResults = value; }
        }

        public int SortOrder
        {
            get { return _SortOrder; }
            set { _SortOrder = value; }
        }


        #endregion

    }


    public class NB_Store_ProductRelatedListInfo : NB_Store_ProductRelatedInfo
    {

        #region "Private Members"
        private string _RelatedProductRef;
        #endregion
        private string _RelatedProductName;


        #region "Constructors"
        public NB_Store_ProductRelatedListInfo()
        {
        }
        #endregion

        #region "Public Properties"

        public string RelatedProductRef
        {
            get { return _RelatedProductRef; }
            set { _RelatedProductRef = value; }
        }

        public string RelatedProductName
        {
            get { return _RelatedProductName; }
            set { _RelatedProductName = value; }
        }

        #endregion

    }

    public class NB_Store_ProductRelatedInfo
    {

        #region "Private Members"
        private int _RelatedID;
        private int _PortalID;
        private int _ProductID;
        private int _RelatedProductID;
        private decimal _DiscountAmt;
        private decimal _DiscountPercent;
        private int _ProductQty;
        private int _MaxQty;
        private int _RelatedType;
        private bool _Disabled;
        private bool _NotAvailable;

        private bool _BiDirectional;
        #endregion

        #region "Constructors"
        public NB_Store_ProductRelatedInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int RelatedID
        {
            get { return _RelatedID; }
            set { _RelatedID = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }


        public int ProductID
        {
            get { return _ProductID; }
            set { _ProductID = value; }
        }

        public int RelatedProductID
        {
            get { return _RelatedProductID; }
            set { _RelatedProductID = value; }
        }

        public decimal DiscountAmt
        {
            get { return _DiscountAmt; }
            set { _DiscountAmt = value; }
        }

        public decimal DiscountPercent
        {
            get { return _DiscountPercent; }
            set { _DiscountPercent = value; }
        }

        public int ProductQty
        {
            get { return _ProductQty; }
            set { _ProductQty = value; }
        }

        public int MaxQty
        {
            get { return _MaxQty; }
            set { _MaxQty = value; }
        }

        public int RelatedType
        {
            get { return _RelatedType; }
            set { _RelatedType = value; }
        }

        public bool Disabled
        {
            get { return _Disabled; }
            set { _Disabled = value; }
        }

        public bool NotAvailable
        {
            get { return _NotAvailable; }
            set { _NotAvailable = value; }
        }

        public bool BiDirectional
        {
            get { return _BiDirectional; }
            set { _BiDirectional = value; }
        }

        #endregion

    }

    public class NB_Store_GatewayInfo
    {

        #region "Private Members"
        private string _ref;
        private string _name;
        private string _assembly;
        private string _class;
        private string _gatewaymsg;

        private string _gatewaytype;
        #endregion

        #region "Constructors"
        public NB_Store_GatewayInfo()
        {
        }
        #endregion

        #region "Public Properties"

        public string @ref
        {
            get { return _ref; }
            set { _ref = value; }
        }

        public string name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string assembly
        {
            get { return _assembly; }
            set { _assembly = value; }
        }

        public string classname
        {
            get { return _class; }
            set { _class = value; }
        }

        public string gatewaymsg
        {
            get { return _gatewaymsg; }
            set { _gatewaymsg = value; }
        }

        public string gatewaytype
        {
            get { return _gatewaytype; }
            set { _gatewaytype = value; }
        }


        #endregion

    }

    public class NB_Store_SearchWordHitsInfo
    {

        #region "Private Members"
        private int _SearchWordHitID;
        private int _SearchWordID;
        private System.DateTime _HitDate;
        private int _HitCount;

        private int _WordPosition;
        #endregion

        #region "Constructors"
        public NB_Store_SearchWordHitsInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int SearchWordHitID
        {
            get { return _SearchWordHitID; }
            set { _SearchWordHitID = value; }
        }

        public int SearchWordID
        {
            get { return _SearchWordID; }
            set { _SearchWordID = value; }
        }

        public System.DateTime HitDate
        {
            get { return _HitDate; }
            set { _HitDate = value; }
        }

        public int HitCount
        {
            get { return _HitCount; }
            set { _HitCount = value; }
        }

        public int WordPosition
        {
            get { return _WordPosition; }
            set { _WordPosition = value; }
        }


        #endregion

    }


    public class NB_Store_SearchWordsInfo
    {

        #region "Private Members"
        private int _SearchWordID;
        private int _PortalID;
        private string _SearchWord;
        private bool _ExistsOnProduct;
        private int _ExistsCount;

        private System.DateTime _LastHitDate;
        #endregion

        #region "Constructors"
        public NB_Store_SearchWordsInfo()
        {
        }
        #endregion

        #region "Public Properties"
        public int SearchWordID
        {
            get { return _SearchWordID; }
            set { _SearchWordID = value; }
        }

        public int PortalID
        {
            get { return _PortalID; }
            set { _PortalID = value; }
        }

        public string SearchWord
        {
            get { return _SearchWord; }
            set { _SearchWord = value; }
        }

        public bool ExistsOnProduct
        {
            get { return _ExistsOnProduct; }
            set { _ExistsOnProduct = value; }
        }

        public int ExistsCount
        {
            get { return _ExistsCount; }
            set { _ExistsCount = value; }
        }

        public System.DateTime LastHitDate
        {
            get { return _LastHitDate; }
            set { _LastHitDate = value; }
        }


        #endregion

    }


    public class NB_Store_SearchWordUpdateInfo
    {

        #region "Private Members"
        private string _SearchWord;
        #endregion
        private int _WordPosition;

        #region "Constructors"
        public NB_Store_SearchWordUpdateInfo()
        {
        }
        #endregion

        #region "Public Properties"

        public string SearchWord
        {
            get { return _SearchWord; }
            set { _SearchWord = value; }
        }

        public int WordPosition
        {
            get { return _WordPosition; }
            set { _WordPosition = value; }
        }


        #endregion

    }


    public class NBright_TextBox
    {

        #region "Private Members"

        private string _Text = "";
        private string _ID = "";
        private bool _CausesValidation = true;
        private int _Columns = 0;
        private int _MaxLength = 0;
        private TextBoxMode _TextMode = TextBoxMode.SingleLine;
        private int _Rows = 0;
        private bool _Wrap = true;
        private string _BackColor = "";
        private string _BorderColor = "";
        private string _BorderWidth = "";
        private BorderStyle _BorderStyle = System.Web.UI.WebControls.BorderStyle.NotSet;
        private string _CssClass = "";
        private bool _Enabled = true;
        private string _ForeColor = "";
        private string _Height = "";
        private int _TabIndex = 0;
        private string _ToolTip = "";
        private string _Width = "";

        private bool _Visible = true;
        #endregion

        #region "Constructors"
        public NBright_TextBox()
        {
        }
        #endregion

        #region "Public Properties"
        public string ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        public string Text
        {
            get { return _Text; }
            set { _Text = value; }
        }

        public bool CausesValidation
        {
            get { return _CausesValidation; }
            set { _CausesValidation = value; }
        }

        public int Columns
        {
            get { return _Columns; }
            set { _Columns = value; }
        }

        public int MaxLength
        {
            get { return _MaxLength; }
            set { _MaxLength = value; }
        }

        public TextBoxMode TextMode
        {
            get { return _TextMode; }
            set { _TextMode = value; }
        }

        public int Rows
        {
            get { return _Rows; }
            set { _Rows = value; }
        }

        public bool Wrap
        {
            get { return _Wrap; }
            set { _Wrap = value; }
        }

        public string BackColor
        {
            get { return _BackColor; }
            set { _BackColor = value; }
        }

        public string BorderWidth
        {
            get { return _BorderWidth; }
            set { _BorderWidth = value; }
        }

        public string BorderColor
        {
            get { return _BorderColor; }
            set { _BorderColor = value; }
        }

        public BorderStyle BorderStyle
        {
            get { return _BorderStyle; }
            set { _BorderStyle = value; }
        }

        public string CssClass
        {
            get { return _CssClass; }
            set { _CssClass = value; }
        }

        public bool Enabled
        {
            get { return _Enabled; }
            set { _Enabled = value; }
        }

        public string ForeColor
        {
            get { return _ForeColor; }
            set { _ForeColor = value; }
        }

        public string Height
        {
            get { return _Height; }
            set { _Height = value; }
        }

        public int TabIndex
        {
            get { return _TabIndex; }
            set { _TabIndex = value; }
        }

        public string ToolTip
        {
            get { return _ToolTip; }
            set { _ToolTip = value; }
        }

        public string Width
        {
            get { return _Width; }
            set { _Width = value; }
        }

        public bool Visible
        {
            get { return _Visible; }
            set { _Visible = value; }
        }
        #endregion

    }


    public class NBright_DropDownList
    {

        #region "Private Members"
        private string _ID = "";
        private string _BorderColor = "";
        private BorderStyle _BorderStyle = System.Web.UI.WebControls.BorderStyle.NotSet;
        private string _BorderWidth = "";
        private int _SelectedIndex = -1;
        private bool _CausesValidation = true;
        private string _SelectedValue = "";
        private string _Text = "";
        private string _BackColor = "";
        private string _CssClass = "";
        private bool _Enabled = true;
        private string _ForeColor = "";
        private string _Height = "";
        private int _TabIndex = 0;
        private string _ToolTip = "";
        private string _Width = "";
        private bool _Visible = true;
        private string _Data = "";

        private string _DataValue = "";
        #endregion

        #region "Constructors"
        public NBright_DropDownList()
        {
        }
        #endregion

        #region "Public Properties"
        public string ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        public string BorderColor
        {
            get { return _BorderColor; }
            set { _BorderColor = value; }
        }

        public BorderStyle BorderStyle
        {
            get { return _BorderStyle; }
            set { _BorderStyle = value; }
        }

        public string BorderWidth
        {
            get { return _BorderWidth; }
            set { _BorderWidth = value; }
        }

        public int SelectedIndex
        {
            get { return _SelectedIndex; }
            set { _SelectedIndex = value; }
        }

        public bool CausesValidation
        {
            get { return _CausesValidation; }
            set { _CausesValidation = value; }
        }

        public string SelectedValue
        {
            get { return _SelectedValue; }
            set { _SelectedValue = value; }
        }

        public string Text
        {
            get { return _Text; }
            set { _Text = value; }
        }

        public string BackColor
        {
            get { return _BackColor; }
            set { _BackColor = value; }
        }

        public string CssClass
        {
            get { return _CssClass; }
            set { _CssClass = value; }
        }

        public bool Enabled
        {
            get { return _Enabled; }
            set { _Enabled = value; }
        }

        public string ForeColor
        {
            get { return _ForeColor; }
            set { _ForeColor = value; }
        }

        public string Height
        {
            get { return _Height; }
            set { _Height = value; }
        }

        public int TabIndex
        {
            get { return _TabIndex; }
            set { _TabIndex = value; }
        }

        public string ToolTip
        {
            get { return _ToolTip; }
            set { _ToolTip = value; }
        }

        public string Width
        {
            get { return _Width; }
            set { _Width = value; }
        }

        public bool Visible
        {
            get { return _Visible; }
            set { _Visible = value; }
        }

        public string data
        {
            get { return _Data; }
            set { _Data = value; }
        }

        public string datavalue
        {
            get { return _DataValue; }
            set { _DataValue = value; }
        }


        #endregion

    }


    public class NBright_CheckBox
    {

        #region "Private Members"
        private string _ID = "";
        private bool _CausesValidation = true;
        private bool _Checked = false;
        private string _Text = "";
        private TextAlign _TextAlign = System.Web.UI.WebControls.TextAlign.Left;
        private string _BackColor = "";
        private string _BorderColor = "";
        private string _BorderWidth = "";
        private BorderStyle _BorderStyle = System.Web.UI.WebControls.BorderStyle.NotSet;
        private string _CssClass = "";
        private bool _Enabled = true;
        private string _ForeColor = "";
        private string _Height = "";
        private int _TabIndex = 0;
        private string _ToolTip = "";
        private string _Width = "";

        private bool _Visible = true;
        #endregion

        #region "Constructors"
        public NBright_CheckBox()
        {
        }
        #endregion

        #region "Public Properties"
        public string ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        public bool CausesValidation
        {
            get { return _CausesValidation; }
            set { _CausesValidation = value; }
        }

        public bool Checked
        {
            get { return _Checked; }
            set { _Checked = value; }
        }

        public string Text
        {
            get { return _Text; }
            set { _Text = value; }
        }

        public TextAlign TextAlign
        {
            get { return _TextAlign; }
            set { _TextAlign = value; }
        }

        public string BackColor
        {
            get { return _BackColor; }
            set { _BackColor = value; }
        }

        public string BorderColor
        {
            get { return _BorderColor; }
            set { _BorderColor = value; }
        }

        public string BorderWidth
        {
            get { return _BorderWidth; }
            set { _BorderWidth = value; }
        }

        public BorderStyle BorderStyle
        {
            get { return _BorderStyle; }
            set { _BorderStyle = value; }
        }

        public string CssClass
        {
            get { return _CssClass; }
            set { _CssClass = value; }
        }

        public bool Enabled
        {
            get { return _Enabled; }
            set { _Enabled = value; }
        }

        public string ForeColor
        {
            get { return _ForeColor; }
            set { _ForeColor = value; }
        }

        public string Height
        {
            get { return _Height; }
            set { _Height = value; }
        }

        public int TabIndex
        {
            get { return _TabIndex; }
            set { _TabIndex = value; }
        }

        public string ToolTip
        {
            get { return _ToolTip; }
            set { _ToolTip = value; }
        }

        public string Width
        {
            get { return _Width; }
            set { _Width = value; }
        }

        public bool Visible
        {
            get { return _Visible; }
            set { _Visible = value; }
        }


        #endregion

    }


    public class NBright_RadioButtonList
    {

        #region "Private Members"
        private string _ID = "";
        private int _CellPadding = -1;
        private int _CellSpacing = -1;
        private int _RepeatColumns = 0;
        private RepeatDirection _RepeatDirection = System.Web.UI.WebControls.RepeatDirection.Vertical;
        private RepeatLayout _RepeatLayout = System.Web.UI.WebControls.RepeatLayout.Table;
        private TextAlign _TextAlign = System.Web.UI.WebControls.TextAlign.Left;
        private bool _CausesValidation = true;
        private int _SelectedIndex = -1;
        private string _SelectedValue = "";
        private string _Text = "";
        private string _BackColor = "";
        private string _BorderColor = "";
        private string _BorderWidth = "";
        private BorderStyle _BorderStyle = System.Web.UI.WebControls.BorderStyle.NotSet;
        private string _CssClass = "";
        private bool _Enabled = true;
        private string _ForeColor = "";
        private string _Height = "";
        private int _TabIndex = 0;
        private string _ToolTip = "";
        private string _Width = "";
        private bool _Visible = true;
        private string _Data = "";

        private string _DataValue = "";
        #endregion

        #region "Constructors"
        public NBright_RadioButtonList()
        {
        }
        #endregion

        #region "Public Properties"
        public string ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        public int CellPadding
        {
            get { return _CellPadding; }
            set { _CellPadding = value; }
        }

        public int CellSpacing
        {
            get { return _CellSpacing; }
            set { _CellSpacing = value; }
        }

        public int RepeatColumns
        {
            get { return _RepeatColumns; }
            set { _RepeatColumns = value; }
        }

        public string RepeatDirection
        {
            get { return _RepeatDirection; }
            set { _RepeatDirection = value; }
        }

        public string RepeatLayout
        {
            get { return _RepeatLayout; }
            set { _RepeatLayout = value; }
        }

        public string TextAlign
        {
            get { return _TextAlign; }
            set { _TextAlign = value; }
        }

        public bool CausesValidation
        {
            get { return _CausesValidation; }
            set { _CausesValidation = value; }
        }

        public int SelectedIndex
        {
            get { return _SelectedIndex; }
            set { _SelectedIndex = value; }
        }

        public string SelectedValue
        {
            get { return _SelectedValue; }
            set { _SelectedValue = value; }
        }

        public string Text
        {
            get { return _Text; }
            set { _Text = value; }
        }

        public string BackColor
        {
            get { return _BackColor; }
            set { _BackColor = value; }
        }

        public string BorderColor
        {
            get { return _BorderColor; }
            set { _BorderColor = value; }
        }

        public string BorderWidth
        {
            get { return _BorderWidth; }
            set { _BorderWidth = value; }
        }

        public string BorderStyle
        {
            get { return _BorderStyle; }
            set { _BorderStyle = value; }
        }

        public string CssClass
        {
            get { return _CssClass; }
            set { _CssClass = value; }
        }

        public bool Enabled
        {
            get { return _Enabled; }
            set { _Enabled = value; }
        }

        public string ForeColor
        {
            get { return _ForeColor; }
            set { _ForeColor = value; }
        }

        public string Height
        {
            get { return _Height; }
            set { _Height = value; }
        }

        public int TabIndex
        {
            get { return _TabIndex; }
            set { _TabIndex = value; }
        }

        public string ToolTip
        {
            get { return _ToolTip; }
            set { _ToolTip = value; }
        }

        public string Width
        {
            get { return _Width; }
            set { _Width = value; }
        }

        public bool Visible
        {
            get { return _Visible; }
            set { _Visible = value; }
        }

        public string data
        {
            get { return _Data; }
            set { _Data = value; }
        }

        public string datavalue
        {
            get { return _DataValue; }
            set { _DataValue = value; }
        }


        #endregion

    }


    public class NBright_dateEditControl
    {

        #region "Private Members"

        private string _Text = "";
        private string _ID = "";
        private bool _CausesValidation = true;
        private int _Columns = 0;
        private int _MaxLength = 0;
        private TextBoxMode _TextMode = TextBoxMode.SingleLine;
        private int _Rows = 0;
        private bool _Wrap = true;
        private string _BackColor = "";
        private string _BorderColor = "";
        private string _BorderWidth = "";
        private BorderStyle _BorderStyle = System.Web.UI.WebControls.BorderStyle.NotSet;
        private string _CssClass = "";
        private bool _Enabled = true;
        private string _ForeColor = "";
        private string _Height = "";
        private int _TabIndex = 0;
        private string _ToolTip = "";
        private string _Width = "";

        private bool _Visible = true;
        #endregion

        #region "Constructors"
        public NBright_dateEditControl()
        {
        }
        #endregion

        #region "Public Properties"
        public string ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        public string Text
        {
            get { return _Text; }
            set { _Text = value; }
        }

        public bool CausesValidation
        {
            get { return _CausesValidation; }
            set { _CausesValidation = value; }
        }

        public int Columns
        {
            get { return _Columns; }
            set { _Columns = value; }
        }

        public int MaxLength
        {
            get { return _MaxLength; }
            set { _MaxLength = value; }
        }

        public TextBoxMode TextMode
        {
            get { return _TextMode; }
            set { _TextMode = value; }
        }

        public int Rows
        {
            get { return _Rows; }
            set { _Rows = value; }
        }

        public bool Wrap
        {
            get { return _Wrap; }
            set { _Wrap = value; }
        }

        public string BackColor
        {
            get { return _BackColor; }
            set { _BackColor = value; }
        }

        public string BorderWidth
        {
            get { return _BorderWidth; }
            set { _BorderWidth = value; }
        }

        public string BorderColor
        {
            get { return _BorderColor; }
            set { _BorderColor = value; }
        }

        public BorderStyle BorderStyle
        {
            get { return _BorderStyle; }
            set { _BorderStyle = value; }
        }

        public string CssClass
        {
            get { return _CssClass; }
            set { _CssClass = value; }
        }

        public bool Enabled
        {
            get { return _Enabled; }
            set { _Enabled = value; }
        }

        public string ForeColor
        {
            get { return _ForeColor; }
            set { _ForeColor = value; }
        }

        public string Height
        {
            get { return _Height; }
            set { _Height = value; }
        }

        public int TabIndex
        {
            get { return _TabIndex; }
            set { _TabIndex = value; }
        }

        public string ToolTip
        {
            get { return _ToolTip; }
            set { _ToolTip = value; }
        }

        public string Width
        {
            get { return _Width; }
            set { _Width = value; }
        }

        public bool Visible
        {
            get { return _Visible; }
            set { _Visible = value; }
        }
        #endregion

    }



    public class FeederSetInfo
    {

        #region "Private Members"
        private string _Key;
        private string _password;
        private string _reportref;
        private string _functionkey;

        private string _cachemins;
        #endregion

        #region "Constructors"
        public FeederSetInfo()
        {
        }
        #endregion

        #region "Public Properties"

        public string Key
        {
            get { return _Key; }
            set { _Key = value; }
        }

        public string password
        {
            get { return _password; }
            set { _password = value; }
        }
        public string reportref
        {
            get { return _reportref; }
            set { _reportref = value; }
        }
        public string functionkey
        {
            get { return _functionkey; }
            set { _functionkey = value; }
        }

        public string cachemins
        {
            get { return _cachemins; }
            set { _cachemins = value; }
        }


        #endregion

    }


}
